package Utiles;

import java.sql.Connection;
import java.sql.DriverManager;

public class MySqlDBConexion {


	public static Connection getConexion(){
		Connection cn=null;
		
		try {
			Class.forName("com.mysql.jdbc.Driver");
			cn=DriverManager.getConnection("jdbc:mysql://localhost:3306/municipalidad_ilo","root","mysql");
			
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}catch (Exception e) {
			e.printStackTrace();
		}
		
		return cn;
	}
	/**
	 * @param args
	 */


}
